<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" xmlns:cc="http://xmlns.jcp.org/jsf/composite">

	<!-- INTERFACE -->
	<cc:interface>
		<cc:attribute name="disablecss" default="false" type="java.lang.Boolean"></cc:attribute>
		<cc:attribute name="disablejquery" default="false" type="java.lang.Boolean"></cc:attribute>
		<cc:attribute name="dateformat" default="yyyy-MM-dd" type="java.lang.String"></cc:attribute>
		<cc:attribute name="build" default="" type="java.lang.String"></cc:attribute>
		<cc:attribute name="theme" default="#{request.contextPath}/imixs/jquery/themes/imixs/jquery-ui.min.css" />
	</cc:interface>

	<!-- IMPLEMENTATION -->
	<cc:implementation>
		<link type="text/css" href="#{request.contextPath}/imixs/css/imixs.css" rel="stylesheet" />
		<c:if test="#{!cc.attrs.disablejquery}">
			<script type="text/javascript" src="#{request.contextPath}/imixs/jquery/jquery-3.5.1.min.js"></script>
		</c:if>

		<!-- Theme: #{cc.attrs.theme} disabled:#{cc.attrs.disablecss} -->
		<c:if test="#{!cc.attrs.disablecss}">

			<link type="text/css" href="#{cc.attrs.theme}" rel="stylesheet" />
			<script type="text/javascript"
				src="#{request.contextPath}/imixs/jquery/themes/imixs/jquery-ui.min.js"></script>
		</c:if>

		<script type="text/javascript"
			src="#{request.contextPath}/imixs/imixs-faces.js?build=#{cc.attrs.build}"></script>

		<!--  Init script -->
		<script type="text/javascript">
			/*<![CDATA[*/

			var disablecss =#{cc.attrs.disablecss};

			// Deprecated jQuery code
			$(document)
				.ready(
					function () {
						if (!disablecss) {
							setDateFormat('#{cc.attrs.dateformat}');
							$(this).imixsLayout();
							//$(this).imixsInitFileUpload();
							imixsFileUploadInit();
							$("span.imixs-tooltip").layoutImixsTooltip();
						}
					});

			/*]]>*/
		</script>
	</cc:implementation>
</ui:composition>